package com.banmao.c01_factory_method.factory;

import com.banmao.c01_factory_method.vehicle.Vehicle;

// 交通工具 基础生产工厂
public abstract class VehicleFactory {

    Vehicle launchVehicle(String type) {
        Vehicle vehicle = newVehicle(type);
        vehicle.start();
        return vehicle;
    }

    abstract Vehicle newVehicle(String type);

}
